﻿/// <summary>
/// Incase you got this error:-
/// 
/// Visual Studio loaded the class, but the designer for that class could not be loaded.
/// The class can be designed, but it is not the first class in the file. Visual Studio requires that designers use the first class in the file.
/// -To correct this error
///  Move the class code so that it is the first class in the file, and then load the designer again.
///
/// </summary>

//Uncomment if UI does not show.
#undef DEBUG

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace NumericalMethod
{
# if DEBUG
   public abstract partial class ContentPane : UserControl
# else
   /// <summary>
   /// Provide Base control to insert pane inside numericalmethod
   /// </summary>
    public partial class ContentPane : UserControl
# endif
   {
      public ContentPane()
      {
         InitializeComponent();
      }

      public ContentPane( IContainer container )
      {
         container.Add( this );

         InitializeComponent();
      }
# if DEBUG
   public abstract void OnLoad();
#else
      public virtual void OnLoad() { }
# endif

      [Description( "Set or Get the Text" )]
      [DefaultValue( "Content title" )]
      public string TreeViewText
      {
         get;
         set;
      }
      [Description("Chapter ID. Put same ID if subchapter")]
      [DefaultValue(0)]
      public int Chapter
      {
          get;
          set;
      }
      [Description( "(Optional)Chapter name" )]
      [DefaultValue( "" )]
      public string ChapterName
      {
         get;
         set;
      }

      [Description("Notes Type")]
      [DefaultValue(NoteType.BinaryOperation)]
      public NoteType Notes
      {
          get;
          set;
      }
   }
}
